package com.zzyl.nursing.controller;

import com.zzyl.common.core.domain.AjaxResult;
import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.nursing.dto.DeviceDataPageReqDto;
import com.zzyl.nursing.service.IDeviceDataService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @FileName DeviceDataController
 * @Description
 * @Author Sword
 * @date 2025-10-12
 **/

@RestController
@RequestMapping("/nursing/data/")
public class DeviceDataController {

    @Autowired
    private IDeviceDataService deviceDataService;

    @GetMapping("/list")
    @ApiOperation("获取设备数据分页结果")
    public TableDataInfo list(DeviceDataPageReqDto deviceDataPageReqDto) {
       return deviceDataService.selectDeviceDataList(deviceDataPageReqDto);
    }
}
